<?php
use think\facade\Route;

Route::get('index','index/index/index'); //首页
Route::post('collect','index/collect/set'); //收藏
Route::rule('login','index/member/login'); //登录
Route::rule('personal-info','index/member/index'); //个人信息
Route::rule('index_goods/[:cat_id]/[:color_sort]/[:page]', 'index/goods/list');//商品列表
Route::rule('goods/:code','index/goods/detail'); //商品详情
Route::post('submit-comment','index/goods/comment'); //商品评价
Route::post('comments-like','index/goods/comments_like'); //评论点赞
Route::post('add_cart','index/cart/set'); //添加购物车
Route::get('shopping-cart','index/cart/list'); //我的购物车
Route::post('update-cart','index/cart/update_cart'); //更新购物车
Route::post('delete-cart','index/cart/delete_cart'); //删除购物车
Route::get('personal-info-all-purchases','index/order/list'); //购买记录
Route::get('company','index/index/company'); //关于我们
Route::get('help','index/index/help'); //帮助
Route::get('subscription','index/member/subscription'); //订阅
Route::post('question','index/index/question'); //留言




Route::any('collect','index/member/collect'); //我的收藏
Route::post('cancel-collect','index/collect/cancel_collect'); //取消收藏

Route::any('order/:cart_ids','index/order/confirm_order'); //确认订单
Route::any('submit_order','index/order/add'); //确认订单
Route::post('track_order','index/order/track'); //订单追踪




Route::post('update_user','index/member/update_user'); //修改个人信息
Route::any('personal-my-sizes','index/member/my_size'); //修改尺寸
Route::any('personal-payments','index/member/payment'); //支付信息
Route::any('personal-address-and-delivery','index/member/my_address'); //修改地址
Route::any('personal-change-password','index/member/change_password'); //修改密码
Route::post('send_email','index/member/send_email'); //修改密码
Route::any('login_out','index/member/logout'); //退出登录
Route::any('personal-subsc-riptions','index/member/subscriptions'); //订阅









